<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo Yii::t('system', 'app name')."-".Yii::t('system', 'description');?></title>
<link rel="icon" href="<?php echo Yii::app()->request->baseUrl; ?>/public/images/admin_img/favicon.ico" type="image/x-icon" />
<link type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/public/css/<?php echo Yii::app()->language; ?>_admin_login.css?ffffff"  rel="stylesheet" />
<script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/public/js/jquery-1.8.3.min.js"></script>
<script>

//验证码
function showCode()
{
	$('#img_code img').attr('src','<?php echo Yii::app()->request->baseUrl; ?>/api/GetCheckCode/?background=<?php echo urlencode('#E9E9E9');?>&font_color=<?php echo urlencode('#4E9F06');?>&width=60&height=25&font_size=13&time='+Math.random());
	$('#img_code').show();
}
// $(function(){showCode();});

//回车键提交表单
$(document).ready(function()
{
	$('input').bind('keyup', function (e){ 
		var theEvent = window.event || e;
		var code = theEvent.keyCode || theEvent.which;
		if(code==13){$('#login-form').submit();}
	});
}
)
</script>
</head>
<body>
	<div class="login">
	<?php $form=$this->beginWidget('CActiveForm', array('id'=>'login-form')); ?>
		<div class="login_form">
			<div class="form_info">
				<div class="field">
					<?php echo $form->labelEx($model,'user_name'); ?>
					<?php echo CHtml::activeTextField($model,'user_name',  array('class'=>'text','size'=>20)) ?>
				</div>
				<div class="field">
					<?php echo $form->labelEx($model,'user_pwd'); ?>
					<?php echo CHtml::activePasswordField($model,'user_pwd',  array('class'=>'text','size'=>20)); ?>
				</div>
<!-- 				<div class="field">
					<?php echo $form->labelEx($model,'check_code'); ?>
					<?php echo CHtml::activeTextField($model,'check_code',  array('class'=>'text','size'=>10,'id'=>'check_code')) ?>
                    <cite class="yzm" id='img_code' ><img src=""  onclick="javascript:this.src='<?php echo Yii::app()->request->baseUrl; ?>/api/GetCheckCode/?background=<?php echo urlencode('#E9E9E9');?>&font_color=<?php echo urlencode('#4E9F06');?>&width=60&height=25&font_size=13&time='+Math.random();" /></cite>
				</div> -->
				
				<div class="field">
					<label></label>
					<button class="button" style="margin-left:60px;_margin-left:58px;margin-top:10px;" onclick="$('#login-form').submit();"></button>
				</div>
			</div>
		</div>
	<?php $this->endWidget(); ?>
	</div>
</body>
</html>